//css 初始化
*{
    margin: 0;
    padding: 0;
    //C3盒子模型
    box-sizing: border;
}
li{
    list-style: none;
}
// 声明字体
@font-face{
    font-family: mathFont;
    src: url(../fonts/DS-DIGIT.TTF);
}
body {
    background:url(../images/bg.jpg) no-repeat top center;
    line-height: 1.15;
}
header{
    position: relative;
    height: 100px;
    background-color: pink;
    background: url(../images/head_bg.png);
    // 水平缩放100%,垂直缩放100%
    background-size:100% 100% ;
    h1{
        line-height: 1rem;
        text-align: center;
        font-size: .475rem;
        color: #FFF;
    }
    .showTime{
        position: absolute;
        top: .375rem;
        right: .375rem;
        line-height: .9375rem;
        color: rgba(255, 255, 255, 0.7);
        font-size: .25rem;
    }
}
// 页面主体部分
.mainbox{
    display: flex;
    //给大盒子固定一下
    min-width: 1024px;
    max-width: 1920px;
    margin: 0 auto;
    height: 300px;
    padding: .125rem .125rem 0rem;
    .panel{
        position: relative;
        height: 3.875rem;
        border: 1px solid rgba(25, 186, 139, 0.17);
        background: url(../images/line\(1\).png) ;
        padding: 0 .1875rem .1rem;
        margin-bottom: .1875rem;
        background-color: rgba(255,255,255,0.03);
        //上面两个小角
        &::before{
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            width: 10px;
            height: 10px;
            border-top: 2px solid #02a6b5;
            border-left: 2px solid #02a6b5;
        }
        &::after{
            content: "";
            position: absolute;
            top: 0;
            right: 0;
            width: 10px;
            height: 10px;
            border-top: 2px solid #02a6b5;
            border-right: 2px solid #02a6b5;
        }
        //下面两个角
        .panel_footer{
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            // height: .25rem;
            // background-color: pink;
            &::before{
            content: "";
            position: absolute;
            bottom: 0;
            left: 0;
            width: 10px;
            // height: 10px;
            border-bottom: 2px solid #02a6b5;
            border-left: 2px solid #02a6b5; 
            }
            &::after{
                content: "";
                position: absolute;
                bottom: 0;
                right: 0;
                width: 10px;
                height: 10px;
                border-bottom: 2px solid #02a6b5;
                border-right: 2px solid #02a6b5;
            }
        }
    }

    .column{
        flex: 3;

        }
    // 用伪类选择器让flex占5份
    .column:nth-child(2){
        flex: 5;
        // overflow: hidden;   
        margin: 0 .125rem .1875rem;

    }
    h2{
        height: .6rem;
        color: #fff;
        line-height: .6rem;
        text-align: center;
        font-size: .25rem;
        font-weight: 400;
        a{
            color: #fff;
            margin:0 .125rem;
        }
    }
    .chart{
        height: 3rem;
        // background-color: pink;
    }
    // 中间大盒子制作-上面部分
    .no{
        padding: .1875rem;
        background-color: rgba(101,132,226,0.1);
        .no-hd{
            position: relative;
            border: 1px solid rgba(25, 186,139, 0.17);
            ul{
                display: flex;
                //注意这里不能让主轴排序方式居中，因为我们想让小li里面的文字居中对齐
                li{
                    flex: 1;
                    line-height: 1rem;
                    font-size: .875rem;
                    color: #ffeb7b;
                    text-align: center;
                    font-family: 'mathFont';
                    &:nth-child(1){
                        position: relative;
                        // background-color: pink;
                        &::after{
                            content: "";
                            position: absolute;
                            width: 1px;
                            height: 50%;
                            top: 25%;
                            right: 0;
                            background-color:rgba(255, 255, 255, 0.2)
                    }
                    }
                    }

            }
           
            &::before{
                content: "";
                position: absolute;
                top: 0;
                left: 0;
                width: 30px;
                height: 10px;
                border-top:2px solid #02a6b5 ;
                border-left:2px solid #02a6b5; 
            }
            &::after{
                content: "";
                position: absolute;
                bottom: 0;
                right: 0;
                width: 30px;
                height: 10px;
                border-bottom:2px solid #02a6b5 ;
                border-right:2px solid #02a6b5 ;
            }
        }
        .no-bd{
            ul{
                display: flex;
                li{
                    flex: 1;
                    text-align: center;
                    color: rgba(255, 255, 255, 0.7);
                    height: .5rem;
                    line-height: .5rem;
                    font-size: 0.225rem;
                    padding-top: .125rem;
                }
            }
        }

    }
    .map{
        position: relative;
        height: 10.125rem;
        .title{
            h2{
                color:#fff;
                font-size: .375rem;
            }
        }
        .earth,.earth2,.earth3{
            width: 6.475rem;
            height: 6.475rem;
            position: absolute;
            top: 50%;
            left: 50%;
            //x轴往左缩进宽度的百分之50，y轴往上缩进宽度的百分之50
            transform: translate(-50%,-50%);
            background: url(../images/map.png) ;
            opacity: .3;
            //水平缩放百分之50，垂直缩放百分之50
            background-size: 100% 100%;
        }
        .earth2{
            width: 8.0375rem;
            height: 8.0375rem;
            background: url(../images/lbx.png) no-repeat;
            //绑定一下动画名,旋转15s，匀速播放，无限循环
            animation: rotate1 15s linear infinite ;
            opacity: 0.7;
            background-size: 100% 100%;
        }
        .earth3{
            width: 7.075rem;
            height: 7.075rem;
            background: url(../images/jt.png) no-repeat;
            //绑定一下动画名,旋转15s，匀速播放，无限循环
            animation: rotate2 10s linear infinite ;
            opacity: 0.7;
            background-size: 100% 100%;
        }
        .map-china{
            position: absolute;
            top: 0px;
            left: 0;
            width: 100%;
            height: 10.125rem;
        }
        //给earth2加一个旋转效果
        @keyframes rotate1{
            //在保持位置不变的同时，从0度开始
            from{
                transform:translate(-50%,-50%)
                rotate(0deg);
            }
            to{
                transform:translate(-50%,-50%)
                rotate(360deg);
            }
        }
        @keyframes rotate2{
            //在保持位置不变的同时，从0度开始
            from{
                transform:translate(-50%,-50%)
                rotate(0deg);
            }
            to{
                transform:translate(-50%,-50%)
                rotate(-360deg);
            }
        }
    }

}
//约束屏幕
@media screen and (max-width: 1024px) {
    html {
      font-size: 42px !important;
    }
  }
  @media screen and (min-width: 1920px) {
    html {
      font-size: 80px !important;
    }
  }